/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2022-01-30 13:21:59
 * @LastEditors: GGB
 * @LastEditTime: 2022-01-31 08:57:02
 */

const QiniuManager = require("./src/utils/QiniuManager");

const accessKey = '5-JujtSj6tMgUq5dM1dT2XVrmalq23zifeYeDB50';
const secretKey = '3LmFeOfAt5jhXMxtCs7GAMll0dNJSWRTwuYV-KkA';
const bucket="cloud-md007"
const localFile = "C:/Users/Administrator/Documents/11.md"
const key = 'test11.md';
const manager =new QiniuManager(accessKey, secretKey, bucket)
// manager.uploadFile(key, localFile).then(data => {
//     console.log('上传成功', data)
//     // return manager.deleteFile(key)
// })
// manager.getBucketDomain().then(data => { 
//     console.log(data)
// })
manager.generateDownloadLink(key).then(data => {
    console.log(data)
})